<?php
/**
*数据库字段的常量定义
*/

/****************************************
*
*数据库状态;
*命名规范：去掉前缀的表名+去掉前缀的字段名+状态
*eg:ch_game_type表的gt_status字段，1正常，0隐藏
*命名：GAME_TYPE_STATUS_CLOSE，GAME_TYPE_STATUS_NORMAL
*
****************************************/

//用户代理状态
define('USER_IS_AGENT_YES', 1);
define('USER_IS_AGENT_NO', 0);

//后台用户状态
define('AUTH_MEMBER_STATUS_YES', 1);
define('AUTH_MEMBER_STATUS_NO', 0);

//权限菜单规则状态
define('AUTH_RULE_STATUS_YES', 1);
define('AUTH_RULE_STATUS_NO', 0);

//网站配置信息状态
define('SITE_CONFIG_STATUS_YES', 1);
define('SITE_CONFIG_STATUS_NO', 0);


//消息类型
define('MESSAGE_TYPE_USER', 1);
define('MESSAGE_TYPE_SYSTEM', 2);

define('MESSAGE_STATUS_UNREAD', 0);
define('MESSAGE_STATUS_READ', 1);

//充值订单类型
define('RECHARGE_ORDER_TYPE_ONLINE_RECHARGE', 1);
define('RECHARGE_ORDER_TYPE_COMPANY_DEPOSIT', 2);

//充值订单状态
define('RECHARGE_ORDER_STATUS_DEFAULT', 0);
define('RECHARGE_ORDER_STATUS_LOCKING', 1);
define('RECHARGE_ORDER_STATUS_SUCCESS', 2);
define('RECHARGE_ORDER_STATUS_FAIL', 3);

//域名状态
define('DOMAIN_STATUS_YES', 1);
define('DOMAIN_STATUS_NO', 0);
define('DOMAIN_STATUS_DELETE', -1);

//钱包类型
define('USER_RECHARGE_WALLET', 1);
define('USER_INCOME_WALLET', 2);

//冻结记录表
define('FREEZE_RECORD_STATUS_FREEZE', 0);
define('FREEZE_RECORD_STATUS_UNFREEZE', 1);

//链接类型
define('URL_LINK_TYPE_DEFAULT', 0);
define('URL_LINK_TYPE_TIME', 1);
define('URL_LINK_TYPE_PRIVATE', 2);

//渠道状态
define('URL_CHANNEL_STATUS_YES', 1);
define('URL_CHANNEL_STATUS_NO', 0);